package com.woniu.rabbit.delay_model.consumer;

import com.woniu.rabbit.delay_model.exchange.DelayExchangeConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DelayConsumerService {
    @Autowired
    private RabbitTemplate rabbitTemplate;

//    @RabbitListener(queues = DelayExchangeConfig.DELAYX_QUEUE)
    public void delayConsumer(String msg) {
        log.info("延时队列消费消息：{}", msg);
    }

}
